package org.example.utils;

import java.util.Random;

public class CodeUtil {


    public static String getCode() {
        String str = "1234567890";
        StringBuilder code = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < 6; i++) {
            int index = random.nextInt(str.length());
            code.append(str.charAt(index));
        }
        return code.toString();
    }
}
